<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib uri="estateTag" prefix="estateTag" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>

		<title>修改产品类别</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<link rel="stylesheet" href="../resource/css/global.css" type="text/css"></link>
	    <link rel="stylesheet" type="text/css" href="../resource/css/easyui/default/easyui.css"></link>
	    <link rel="stylesheet" href="../resource/css/whole.css" type="text/css"></link>
		<link rel="stylesheet" type="text/css" href="../resource/js/kindeditor/skins/default.css"></link>
		<link rel="stylesheet" href="../resource/css/memberCenter/infowithoutmenu.css" type="text/css"></link>
		
		<script type="text/javascript" src="../resource/js/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="../resource/js/kindeditor/kindeditor.js"></script>
		<script type="text/javascript" src="../resource/js/jquery-1.4.2.js"></script>
		<script type="text/javascript" src="../resource/js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="modifyType.js"></script>
	</head>
<SCRIPT type="text/javascript">
var basePath = "<%=basePath%>";
</SCRIPT>
	<body><estateTag:security></estateTag:security>
		<center><jsp:include page="../index/top.jsp"></jsp:include></center>
      <div style="width: 100%;margin-top: 10px;" align="center">
      <input id="menuCls" type="hidden" value="312">
			<table width="100%" class="layoutTab">
				<tr>
					<!-- <td width="20%" align="left" valign="top"><jsp:include page="../menu.jsp"></jsp:include></td> -->
					<td valign="top">
					<form name="form" method="post"
										action="../type/type_addType.shtml"
										onsubmit="return checkmodify()" >
					 <div class="position" align="left"><label>您所在的位置：</label>行业/市场管理模块&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;产品种类&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;种类信息</div>
					<br/><div class="info_top"></div>
					<div class="info_mid">
										<table id="userinfo"  width="710px" border="0" cellpadding="1" cellspacing="1">
											<tr>
												<th align="center" colspan="2">
													<b style="color: #000000">修改产品种类 （<font color="red">*</font> 为必填项）</b>
												</th>
											</tr>
											<tr>
												<td width="16%">产品类别<input type="hidden" value="${id}" name="id"/>
											
												</td>
											<td align="left">
													<select name="bigCategory"  onchange="bigCategoryChange()" id="bigCategory">
													<option value="">请选择</option>
														<s:iterator value="#pList" var="pdata" >
															<option value="<s:property value="#pdata.id"/>" 
															<s:if test='%{#pdata.id == #pid}'>
															selected="selected"
															</s:if>
															><s:property value="#pdata.name"/></option>
														</s:iterator>
													</select>
												</td>
											</tr>
											<tr>
												<td width="16%">子类别</td>
												<td align="left" id="smallCategory">
													<select name="categoryId" id="categoryId" >
													<option value="">请选择</option>
														<s:iterator value="#cList" var="cdata">
															<option value="<s:property value="#cdata.id"/>" 
															<s:if test='%{#cdata.id == #cid}'>
															selected="selected"
															</s:if>
															><s:property value="#cdata.name"/></option>
														</s:iterator>
													</select>
												</td>
											</tr>
											<tr>
												<td align="right" width="16%">
														<font color="red">*</font>产品种类名称:
 												</td>
												<td align="left">
														<input id="name" type="text"  name="type.name" size="80" maxlength="50"
															value="${type.name}" />
												</td>
											</tr>
											<tr>
												<td align="right" width="16%">
														<font color="red">*</font>产品种类序号:
 												</td>
												<td align="left">
														<input id="code" type="text"  name="type.code" size="10" maxlength="50"
															value="${type.code}" />(提示：序号越大，位置越前)
												</td>
											</tr>
											<tr>
												<td colspan="2" align="center">
													<input type="hidden" name="type.id" value="${type.id}">
													<input type="submit" value="提交">
													<input type="button" value="返回" onclick="javascript:window.history.go(-1)">
												</td>
											</tr>
										</table>
										   </div>
								<div class="info_bottom">&nbsp;</div>
									</form>
								</td>
							</tr>
						</table>
		</div>
						<div style="margin-top: 10px;">
		</div>   
		<center> <iframe src="../index/footer.html" width="970" height="120" frameborder="0" scrolling="no"></iframe> </center> 
	</body>
	<SCRIPT type="text/javascript">
		$("#categoryChildId").html("<s:property value='message'/>");
	</SCRIPT>
</html>
